﻿<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" Title="Real Estate By Status"
    CodeBehind="ByREStatus.aspx.cs" Inherits="RealEstate.ByREStatus" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <script type="text/javascript">
        function RowSelected(sender, args) {
            alert("Selected: " + args.getDataKeyValue("TransactionId"));
        }
        function RowDblClick(sender, args) {
            window.location = "TranDetails.aspx?id=" + args.getDataKeyValue("TransactionId") + "&viewid=3";
        }
    </script>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Web20">
    </telerik:RadSkinManager>
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
        <telerik:RadGrid ID="radTableTransaction" runat="server" PageSize="15" AllowSorting="False"
            AllowPaging="True" ShowGroupPanel="False" GroupingSettings-CaseSensitive="False" AutoGenerateColumns="False" GridLines="None"
            AllowFilteringByColumn="true">
            <PagerStyle Mode="NumericPages"></PagerStyle>
            <ClientSettings>
                <Selecting AllowRowSelect="True" />
                <ClientEvents OnRowDblClick="RowDblClick" />
            </ClientSettings>
            <MasterTableView Width="100%" ClientDataKeyNames="TransactionId" ShowFooter="True"
                GroupLoadMode="Client" CanRetrieveAllData="true">
                <GroupByExpressions>
                    <telerik:GridGroupByExpression>
                        <SelectFields>
                            <telerik:GridGroupByField FieldName="CaseStatus" HeaderText="Status" FormatString="<strong>{0}</strong>" />
                        </SelectFields>
                        <GroupByFields>
                            <telerik:GridGroupByField FieldName="CaseStatus" />
                        </GroupByFields>
                    </telerik:GridGroupByExpression>
                    <telerik:GridGroupByExpression>
                        <SelectFields>
                            <telerik:GridGroupByField FieldName="DateOfStatus" HeaderText="Date Of Status" FormatString="<strong>{0:MM/dd/yyyy}</strong>" />
                        </SelectFields>
                        <GroupByFields>
                            <telerik:GridGroupByField FieldName="DateOfStatus" />
                        </GroupByFields>
                    </telerik:GridGroupByExpression>
                </GroupByExpressions>
                <Columns>
                    <telerik:GridTemplateColumn AllowFiltering="false" HeaderText=" ">
                        <ItemTemplate>
                            <%# Container.DataSetIndex + 1 %>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"
                        SortExpression="ClientCoClientName" HeaderText="Client's and Co Cclient's Name"
                        HeaderButtonType="TextButton" DataField="ClientCoClientName" UniqueName="ClientCoClientName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" SortExpression="HomePhone" HeaderText="Client Type" HeaderButtonType="TextButton"
                        DataField="ClientType.ClientType1" UniqueName="ClientType">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" SortExpression="SubjectProperty" HeaderText="Subject Property"
                        HeaderButtonType="TextButton" DataField="SubjectProperty" UniqueName="SubjectProperty"
                        DataFormatString="{0:###-###-####}">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" SortExpression="DateOfCOE" HeaderText="Date To Be COE" HeaderButtonType="TextButton"
                        DataField="DateOfCOE" UniqueName="DateOfCOE" DataFormatString="{0:MM/dd/yyyy}">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" SortExpression="ReferedBy" HeaderText="Refered By" HeaderButtonType="TextButton"
                        DataField="ReferedBy" UniqueName="ReferedBy" DataFormatString="{0}">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </telerik:RadAjaxPanel>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
</asp:Content>
